
package ploy.lang;

import java.util.*;
import java.io.*;
import java.math.*;

public class Pair extends DynamicObject  {
    
    public static String jvmClass = "ploy/lang/Pair";
    public static String jvmType = "L" + jvmClass + ";";    

    private DynamicObject head;
    private DynamicObject tail;

    public boolean isPair() { return true; }

    public Pair( DynamicObject first, DynamicObject second ) {
	head = first;
	tail = second;
    }

    public String toString( ) {
	return "(" + head.toString() + " . " + tail.toString() + ")";
    }

    public DynamicObject head() {
	return head;
    }

    public DynamicObject tail() {
	return tail;
    }

}


